<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>
  <title>
    飞狐的部落格
  </title>

  <link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="content-type" content="text/html; charset=utf-8">


<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">

<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<meta name="generator" content="Hugo 0.14" />

  <meta property="og:title" content="飞狐的部落格" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_US" />
<meta property="og:url" content="http://lucumt.info/" />


  
   <link rel="stylesheet" href="http://lucumt.info/css/base-min.css">
   <link rel="stylesheet" href="http://lucumt.info/css/pure-min.css">
  
  
    <link rel="stylesheet" href="http://lucumt.info/css/grids-responsive-min.css">
  
  

  <link rel="stylesheet" href="http://lucumt.info/css/redlounge.css">
  
  <link rel="stylesheet" href="http://lucumt.info/css/googleapis.font.css">
  <link rel="stylesheet" href="http://lucumt.info/css/jqcloud.css">
  <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
  

  
  <link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://lucumt.info/touch-icon-144-precomposed.png">
  <link rel="shortcut icon" href="http://lucumt.info/lucumt.ico">

  
  <link href="http://lucumt.info/index.xml" rel="alternate" type="application/rss+xml" title="飞狐的部落格" />

  <script src="http://lucumt.info//js/jquery.min.js"></script>
  <script src="http://lucumt.info//js/jqcloud-1.0.4.min.js"></script>

    
  
  <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/rainbow.min.css">
  
  <script src="http://lucumt.info/js/highlight.min.js"></script>
  <script>hljs.initHighlightingOnLoad();</script>


  

  

  

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', "UA-75123653-1", 'auto');
  ga('send', 'pageview');
</script>




<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?cabc0a71f63da092412d82d1aefe7d1c";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

</head>
<body>
    <div id="layout" class="pure-g">
	    
		<a href="https://github.com/lucumt/ghblog" target="_new">
			<img style="position: absolute; top: 0; right: 0; border: 0;" 
			src="/img/forkme_right_red.png" alt="Fork me on GitHub">
		</a>

        <div class="sidebar pure-u-1 pure-u-md-1-4">
  <div class="header">
    

	
	  <img src="http://lucumt.info/img/photo.jpg" class="profilepic">
	

    <h1 class="brand-title">飞狐的部落格</h1>
    <h2 class="brand-tagline">Rosen Lu</h2>

    <nav class="nav">
      <ul class="nav-list">
        <li class="nav-item"><span class="nav-item-separator">//</span><a href="http://lucumt.info/">Home</a></li>
        
          <li class="nav-item"><span class="nav-item-separator">//</span><a href="http://lucumt.info/about/">About</a></li>
        
          <li class="nav-item"><span class="nav-item-separator">//</span><a href="http://lucumt.info/posts/">Blog</a></li>
        
      </ul>
    </nav>

    
    <div class="social-buttons">
      
        
        <a href="https://github.com/lucumt" target="_blank"><i class='fa fa-github'></i></a>
        
      
        
        <a href="https://plus.google.com/u/0/115794588502118898127/posts" target="_blank"><i class='fa fa-google-plus'></i></a>
        
      
        
        <a href="https://www.facebook.com/rosen.lu.1" target="_blank"><i class='fa fa-facebook'></i></a>
        
      
        
        <a href="http://www.twitter.com/rosenlucumt" target="_blank"><i class='fa fa-twitter'></i></a>
        
      
        
        <a href="mailto:lucumt@gmail.com" target="_blank"><i class='fa fa-mail-forward'></i></a>
        
      
    </div>
    
    
	
	  <hr class="nav-site-separator"/>
	  <nav class="nav">
      <ul class="nav-list">
	    
		   <li class="nav-site"><a href="http://lilydjwg.is-programmer.com/" target="_blank">依云的博客</a></li>
		
		   <li class="nav-site"><a href="http://evilbinary.org/" target="_blank">邪恶二进制</a></li>
		
		   <li class="nav-site"><a href="http://www.wlman.cc/" target="_blank">Consec &#39;s Blog</a></li>
		
		   <li class="nav-site"><a href="http://www.linuxzen.com/" target="_blank">cold&#39;s world</a></li>
		
		   <li class="nav-site"><a href="http://frantic1048.logdown.com/" target="_blank">Frantic log#1048</a></li>
		
	  </ul>
	  </nav>
	
	

  </div>
</div>


        <div class="content pure-u-1 pure-u-md-3-4">
            <a name="top"></a>
            ﻿

          <div class="posts">
            
			
            
			
            <section  class="post">
                <header class="post-header">
                    
                    <h1 class="post-title">
                      <a href="http://lucumt.info/posts/mybatis-batch-insert-exception">mybatis batch insert exception的解决方法</a>
                  </h1>
              </header>
              <p class="post-meta">
                  
                  <span class="post-date">
                    <span class="post-date-day"><sup>30</sup></span><span class="post-date-separator">/</span><span class="post-date-month">May</span> <span class="post-date-year">2016</span>
                </span>
                
                
                    By <a class="post-author" href="https://www.linkedin.com/in/%E8%BF%90%E5%BC%BA-%E5%8D%A2-50a08bb5/" target="_new">飞狐</a>
                
                
                    <span class="post-reading-time"><i class="fa fa-clock-o"></i> <em>1 min. read</em></span>
                
                
                <div class="post-categories">
                    
                    <a class="post-category post-category-java" href="http://lucumt.info//categories/java">Java</a>
                    
                    <a class="post-category post-category-mybatis" href="http://lucumt.info//categories/mybatis">MyBatis</a>
                    
                </div>
                
            </p>
            <article class="post-summary">
                  <p>在利用 <strong><a href="http://www.mybatis.org/mybatis-3/">MyBatis</a></strong> 进行多条数据插入时，为了提高性能我们可能会使用批量插入的功能来实现。示例代码如下:</p>

<ul>
<li><p>SQL配置文件:</p>

<pre><code class="language-xml">&lt;insert id=&quot;addAuthorityRoleBatch&quot; parameterType=&quot;List&quot;&gt;
    INSERT INTO system_authority_role(role_id,authority_id)
      VALUES
      &lt;foreach collection=&quot;list&quot; item=&quot;authRole&quot; separator=&quot;,&quot;&gt;
        (#{authRole.roleId},#{authRole.authorityId})
      &lt;/foreach&gt;
  &lt;/insert&gt;
</code></pre></li>
</ul>

              </article>
              <div class="read-more-link">
                  <a href="http://lucumt.info/posts/mybatis-batch-insert-exception"><span class="read-more-slashes">//</span>Read More...</a>
              </div>
          </section>
          
		  
			
            <section  class="post">
                <header class="post-header">
                    
                    <h1 class="post-title">
                      <a href="http://lucumt.info/posts/download-big-file-using-springmvc">利用SpringMVC下载大文件时内存溢出的处理</a>
                  </h1>
              </header>
              <p class="post-meta">
                  
                  <span class="post-date">
                    <span class="post-date-day"><sup>20</sup></span><span class="post-date-separator">/</span><span class="post-date-month">Mar</span> <span class="post-date-year">2016</span>
                </span>
                
                
                    By <a class="post-author" href="https://www.linkedin.com/in/%E8%BF%90%E5%BC%BA-%E5%8D%A2-50a08bb5/" target="_new">飞狐</a>
                
                
                    <span class="post-reading-time"><i class="fa fa-clock-o"></i> <em>1 min. read</em></span>
                
                
                <div class="post-categories">
                    
                    <a class="post-category post-category-java" href="http://lucumt.info//categories/java">Java</a>
                    
                    <a class="post-category post-category-spring" href="http://lucumt.info//categories/spring">Spring</a>
                    
                    <a class="post-category post-category-springmvc" href="http://lucumt.info//categories/springmvc">SpringMVC</a>
                    
                </div>
                
            </p>
            <article class="post-summary">
                  <p>文件的上传和下载是Web系统中的一个很普通的功能，实现的方式也有很多种，如利用 <strong><a href="https://docs.oracle.com/javase/7/docs/api/java/io/package-summary.html">java.io</a></strong> 下面的各种IO类自己实现，或者利用 <strong><a href="https://commons.apache.org/proper/commons-io/">Commons IO</a></strong> 包中的 <strong><em>FileUtils</em></strong> 、 <strong><em>IOUtils</em></strong> 类中封装好的方法直接调用。由于目前我所开发的系统采用了 <strong><a href="http://docs.spring.io/autorepo/docs/spring/3.2.x/spring-framework-reference/html/mvc.html">SpringMVC</a></strong> 来作为项目的MVC实现，所以很自然的采用 <strong><a href="http://docs.spring.io/autorepo/docs/spring/3.2.x/spring-framework-reference/html/mvc.html">SpringMVC</a></strong>内置的API进行文件的下载，但在实际使用过程中发现其对大文件的下载支持不太好，现把解决方案记录如下：</p>

              </article>
              <div class="read-more-link">
                  <a href="http://lucumt.info/posts/download-big-file-using-springmvc"><span class="read-more-slashes">//</span>Read More...</a>
              </div>
          </section>
          
		  
			
            <section  class="post">
                <header class="post-header">
                    
                    <h1 class="post-title">
                      <a href="http://lucumt.info/posts/using-junit-in-spring">利用Spring和JUnit对数据库操作进行单元测试</a>
                  </h1>
              </header>
              <p class="post-meta">
                  
                  <span class="post-date">
                    <span class="post-date-day"><sup>20</sup></span><span class="post-date-separator">/</span><span class="post-date-month">Mar</span> <span class="post-date-year">2016</span>
                </span>
                
                
                    By <a class="post-author" href="https://www.linkedin.com/in/%E8%BF%90%E5%BC%BA-%E5%8D%A2-50a08bb5/" target="_new">飞狐</a>
                
                
                    <span class="post-reading-time"><i class="fa fa-clock-o"></i> <em>1 min. read</em></span>
                
                
                <div class="post-categories">
                    
                    <a class="post-category post-category-java" href="http://lucumt.info//categories/java">Java</a>
                    
                    <a class="post-category post-category-junit" href="http://lucumt.info//categories/junit">JUnit</a>
                    
                </div>
                
            </p>
            <article class="post-summary">
                  <p>在进行Java程序开发时，我们偶尔会被要求使用<strong><a href="http://junit.org/">JUnit</a></strong>进行单元测试来确保我们所写的程序逻辑是正确的。一个良好的单元测试应该具备 <strong><em>覆盖度高，可重复执行，单一性</em></strong> 等特点。本文主要关注<strong><em>可重复执行</em></strong> ，在Web开发中，大部分方法都会使数据库的记录发生变化，为了能够重复执行，必须利用<strong><a href="https://zh.wikipedia.org/wiki/%E6%95%B0%E6%8D%AE%E5%BA%93%E4%BA%8B%E5%8A%A1">数据库事务</a></strong> 来进行 <strong><em>回滚</em></strong> 从而达到重复执行的目的。最原始的方法是利用 <strong><a href="https://docs.oracle.com/javase/7/docs/api/java/sql/Connection.html">java.sql.Connection</a></strong> 类的 <code>commit()</code> 或 <code>rollback()</code> 方法来在每个单元测试方法中手动的进行提交或回滚，此种方式使得单元测试代码嵌入了与实际业务逻辑无关的数据库操作事务控制代码。利用<strong><a href="https://spring.io/">Spring</a></strong>和<strong><a href="http://junit.org/">JUnit</a></strong>通过注解的方式我们可以很容易的对单元测试中的数据库操作进行事务控制。</p>

              </article>
              <div class="read-more-link">
                  <a href="http://lucumt.info/posts/using-junit-in-spring"><span class="read-more-slashes">//</span>Read More...</a>
              </div>
          </section>
          
		  
			
            <section  class="post">
                <header class="post-header">
                    
                    <h1 class="post-title">
                      <a href="http://lucumt.info/posts/update-authority-dynamic-using-spring-security">利用Spring Security动态的改变权限</a>
                  </h1>
              </header>
              <p class="post-meta">
                  
                  <span class="post-date">
                    <span class="post-date-day"><sup>20</sup></span><span class="post-date-separator">/</span><span class="post-date-month">Mar</span> <span class="post-date-year">2016</span>
                </span>
                
                
                    By <a class="post-author" href="https://www.linkedin.com/in/%E8%BF%90%E5%BC%BA-%E5%8D%A2-50a08bb5/" target="_new">飞狐</a>
                
                
                    <span class="post-reading-time"><i class="fa fa-clock-o"></i> <em>1 min. read</em></span>
                
                
                <div class="post-categories">
                    
                    <a class="post-category post-category-java" href="http://lucumt.info//categories/java">Java</a>
                    
                    <a class="post-category post-category-spring" href="http://lucumt.info//categories/spring">Spring</a>
                    
                    <a class="post-category post-category-spring-security" href="http://lucumt.info//categories/spring-security">Spring Security</a>
                    
                </div>
                
            </p>
            <article class="post-summary">
                  <p>利用 <strong><a href="http://projects.spring.io/spring-security/">Spring Security</a></strong> 来管理我们的web程序时，通常需要在<strong><em>UserDetailsService</em></strong> 接口中的 <strong><em>loadUserByUsername</em></strong> 方法中来初始化权限信息,但 <strong><em>UserDetailsService</em></strong> 一般用于登录验证，这也意味着用户的权限在登录过程中就会被计算出来。通常情况下由于用户的权限很少发生变化，在登录过程中计算出用户权限是合理的，但有些情况下，我们需要在中途来动态的改变用户的权限，此时我们可以利用 <strong><a href="http://projects.spring.io/spring-security/">Spring Security</a></strong> 提供的API来实现。</p>

              </article>
              <div class="read-more-link">
                  <a href="http://lucumt.info/posts/update-authority-dynamic-using-spring-security"><span class="read-more-slashes">//</span>Read More...</a>
              </div>
          </section>
          
		  
			
            <section  class="post">
                <header class="post-header">
                    
                    <h1 class="post-title">
                      <a href="http://lucumt.info/posts/using-mock-test-http-servlet-request">在Spring中利用Mock对HttpServletRequest进行单元测试</a>
                  </h1>
              </header>
              <p class="post-meta">
                  
                  <span class="post-date">
                    <span class="post-date-day"><sup>19</sup></span><span class="post-date-separator">/</span><span class="post-date-month">Mar</span> <span class="post-date-year">2016</span>
                </span>
                
                
                    By <a class="post-author" href="https://www.linkedin.com/in/%E8%BF%90%E5%BC%BA-%E5%8D%A2-50a08bb5/" target="_new">飞狐</a>
                
                
                    <span class="post-reading-time"><i class="fa fa-clock-o"></i> <em>1 min. read</em></span>
                
                
                <div class="post-categories">
                    
                    <a class="post-category post-category-java" href="http://lucumt.info//categories/java">Java</a>
                    
                    <a class="post-category post-category-spring" href="http://lucumt.info//categories/spring">Spring</a>
                    
                    <a class="post-category post-category-springmvc" href="http://lucumt.info//categories/springmvc">SpringMVC</a>
                    
                    <a class="post-category post-category-junit" href="http://lucumt.info//categories/junit">JUnit</a>
                    
                </div>
                
            </p>
            <article class="post-summary">
                  <h2 id="编写单元测试时的注意事项:ce3acd839c9974eb09add799db7e87e2">编写单元测试时的注意事项</h2>

<p>根据软件开发过程中的<strong><em><a href="https://en.wikipedia.org/wiki/Test-driven_development">TDD</a></em></strong> 理论，在我们编写自己的代码时，要尽量使得该代码能够进行单元测试。为了能够使得代码可以进行单元测试，我们在给接口或方法传入参数时要尽量传入简单参数，避免传入 <strong><em>HttpServletRequest</em></strong> , <strong><em>ServletContext</em></strong> 等和web上下文相关的复杂对象。但仍有部分情况下基于代码简洁性和可维护性的考虑，我们需要传入 <strong><em>HttpServletRequest</em></strong> 对象，此时对此类方法进行<strong><a href="http://junit.org/">JUnit</a></strong>单元测试时会较为困难，本文介绍一种在<strong><a href="https://spring.io/">Spring</a></strong>中通过<strong><a href="http://mockito.org/">Mock</a></strong>来模拟<strong><em>HttpServletRequest</em></strong> 对象进行<strong><a href="http://junit.org/">JUnit</a></strong>单元测试的方法。</p>

              </article>
              <div class="read-more-link">
                  <a href="http://lucumt.info/posts/using-mock-test-http-servlet-request"><span class="read-more-slashes">//</span>Read More...</a>
              </div>
          </section>
          
		  
			
            <section  class="post">
                <header class="post-header">
                    
                    <h1 class="post-title">
                      <a href="http://lucumt.info/posts/mediawiki-back-to-top">Mediawiki添加回到顶部的方法</a>
                  </h1>
              </header>
              <p class="post-meta">
                  
                  <span class="post-date">
                    <span class="post-date-day"><sup>18</sup></span><span class="post-date-separator">/</span><span class="post-date-month">Mar</span> <span class="post-date-year">2016</span>
                </span>
                
                
                    By <a class="post-author" href="https://www.linkedin.com/in/%E8%BF%90%E5%BC%BA-%E5%8D%A2-50a08bb5/" target="_new">飞狐</a>
                
                
                    <span class="post-reading-time"><i class="fa fa-clock-o"></i> <em>1 min. read</em></span>
                
                
                <div class="post-categories">
                    
                    <a class="post-category post-category-mediawiki" href="http://lucumt.info//categories/mediawiki">Mediawiki</a>
                    
                </div>
                
            </p>
            <article class="post-summary">
                  <p><strong><a href="https://www.mediawiki.org/wiki/MediaWiki">Mediawiki</a></strong>是<strong><a href="https://www.wikipedia.org/">维基百科</a></strong>系统所采用的框架，适合于需要快速搭建知识分享的场合。采用<strong><a href="https://www.mediawiki.org/wiki/MediaWiki">Mediawiki</a></strong>生成的知识共享平台和<strong><a href="https://www.wikipedia.org/">维基百科</a></strong>的操作与使用类似，都支持采用<strong><a href="https://zh.wikipedia.org/zh-cn/Markdown">Markdown</a></strong>语法来编辑。在有些时候，某些词条的内容很长，使得浏览器出现了滚动条，如果能仿照微博等网站添加一个<strong><em>回到顶部</em></strong>的功能，将会给我们的使用带来很大的便利，本文介绍一种实现方法：</p>

              </article>
              <div class="read-more-link">
                  <a href="http://lucumt.info/posts/mediawiki-back-to-top"><span class="read-more-slashes">//</span>Read More...</a>
              </div>
          </section>
          
		  
			
            <section  class="post">
                <header class="post-header">
                    
                    <h1 class="post-title">
                      <a href="http://lucumt.info/posts/java-concurrency/java-volatile-keyword">[译] Java Volatile 关键字详解</a>
                  </h1>
              </header>
              <p class="post-meta">
                  
                  <span class="post-date">
                    <span class="post-date-day"><sup>7</sup></span><span class="post-date-separator">/</span><span class="post-date-month">Mar</span> <span class="post-date-year">2016</span>
                </span>
                
                
                    By <a class="post-author" href="https://www.linkedin.com/in/%E8%BF%90%E5%BC%BA-%E5%8D%A2-50a08bb5/" target="_new">飞狐</a>
                
                
                    <span class="post-reading-time"><i class="fa fa-clock-o"></i> <em>2 min. read</em></span>
                
                
                <div class="post-categories">
                    
                    <a class="post-category post-category-java" href="http://lucumt.info//categories/java">Java</a>
                    
                    <a class="post-category post-category-java-concurrency" href="http://lucumt.info//categories/java-concurrency">Java Concurrency</a>
                    
                    <a class="post-category post-category-%E7%BF%BB%E8%AF%91" href="http://lucumt.info//categories/%E7%BF%BB%E8%AF%91">翻译</a>
                    
                </div>
                
            </p>
            <article class="post-summary">
                  <p>本文翻译自 <strong><a href="http://tutorials.jenkov.com/java-concurrency/volatile.html">Java Volatile Keyword</a></strong></p>

<p>Java关键字<code>volatile</code>用于将一个Java变量标记为 <em>在主内中存储</em> ，更准确的解释为：每次读取一个<code>volatile</code>变量时将从电脑的主内存中读取而不是从CPU缓存中读取，每次对一个<code>volatile</code>变量进行写操作时，将会写入到主内存中而不是写入到CPU缓存中。</p>

<p>事实上，从Java5之后，<code>volatile</code>关键字不仅仅可以用来确保<code>volatile</code>变量是写入到主内存和从主内存读取数据，我会在下面的章节进行详细的介绍：</p>

              </article>
              <div class="read-more-link">
                  <a href="http://lucumt.info/posts/java-concurrency/java-volatile-keyword"><span class="read-more-slashes">//</span>Read More...</a>
              </div>
          </section>
          
		  
			
            <section  class="post">
                <header class="post-header">
                    
                    <h1 class="post-title">
                      <a href="http://lucumt.info/posts/can-not-run-program-mysqldump">Cannot run program &#34;mysqldump&#34;: CreateProcess error=2, The system cannot find the file specified</a>
                  </h1>
              </header>
              <p class="post-meta">
                  
                  <span class="post-date">
                    <span class="post-date-day"><sup>3</sup></span><span class="post-date-separator">/</span><span class="post-date-month">Mar</span> <span class="post-date-year">2016</span>
                </span>
                
                
                    By <a class="post-author" href="https://www.linkedin.com/in/%E8%BF%90%E5%BC%BA-%E5%8D%A2-50a08bb5/" target="_new">飞狐</a>
                
                
                    <span class="post-reading-time"><i class="fa fa-clock-o"></i> <em>1 min. read</em></span>
                
                
                <div class="post-categories">
                    
                    <a class="post-category post-category-mysql" href="http://lucumt.info//categories/mysql">MySQL</a>
                    
                    <a class="post-category post-category-java" href="http://lucumt.info//categories/java">Java</a>
                    
                </div>
                
            </p>
            <article class="post-summary">
                  <p>项目中用到了<code>MySQL</code>数据库的备份功能，通过调用<code>Java</code>程序中的<strong><a href="http://docs.oracle.com/javase/6/docs/api/">Runtime</a></strong>来执行<code>mysqldump</code>命令自动的生成相关的<code>MySQL</code>数据库文件以供恢复之用。相关的代码如下:</p>

<pre><code class="language-java">Runtime runtime = Runtime.getRuntime();
String mysqlCmd = &quot;mysqldump&quot; + &quot; -u&quot; + username + &quot; -p&quot; + password + 
           &quot;  -h &quot; + databaseAddress + &quot; &quot; +databaseName;
Process process = runtime.exec(mysqlCmd);
</code></pre>

<p>但是在客户那里实际使用时，有时候会出现在cmd中<code>MySQL</code>命令可以正常识别但是程序不能正常执行的情况，报错信息如下:</p>

              </article>
              <div class="read-more-link">
                  <a href="http://lucumt.info/posts/can-not-run-program-mysqldump"><span class="read-more-slashes">//</span>Read More...</a>
              </div>
          </section>
          
		  
			
            <section  class="post">
                <header class="post-header">
                    
                    <h1 class="post-title">
                      <a href="http://lucumt.info/posts/create-website-with-hugo">利用Github Pages和基于Go的Hugo搭建个人博客</a>
                  </h1>
              </header>
              <p class="post-meta">
                  
                  <span class="post-date">
                    <span class="post-date-day"><sup>27</sup></span><span class="post-date-separator">/</span><span class="post-date-month">Feb</span> <span class="post-date-year">2016</span>
                </span>
                
                
                    By <a class="post-author" href="https://www.linkedin.com/in/%E8%BF%90%E5%BC%BA-%E5%8D%A2-50a08bb5/" target="_new">飞狐</a>
                
                
                    <span class="post-reading-time"><i class="fa fa-clock-o"></i> <em>2 min. read</em></span>
                
                
                <div class="post-categories">
                    
                    <a class="post-category post-category-go" href="http://lucumt.info//categories/go">Go</a>
                    
                    <a class="post-category post-category-hugo" href="http://lucumt.info//categories/hugo">Hugo</a>
                    
                    <a class="post-category post-category-github-pages" href="http://lucumt.info//categories/github-pages">Github Pages</a>
                    
                </div>
                
            </p>
            <article class="post-summary">
                  <p>一直以来都想拥有一个属于自己的博客，前段时间在学习<code>Go</code> ，于是利用<code>Hugo</code> 和<code>Github Pages</code> 搭建了一个简易的个人博客，先简单记录下。</p>

              </article>
              <div class="read-more-link">
                  <a href="http://lucumt.info/posts/create-website-with-hugo"><span class="read-more-slashes">//</span>Read More...</a>
              </div>
          </section>
          
		  
        </div>
		<div class="page-link">
		    总共<b>2</b>页，当前第<b>2</b>页
			
			   <a href="http://lucumt.info/"><span class="read-more-slashes">//</span>上一页</a>
			
			&nbsp;
			
		</div>

        <div class="footer">
	<hr class="thin" />
	<div class="pure-menu pure-menu-horizontal pure-menu-open">
		<ul class="footer-menu">
		
			<li><a href="https://github.com/tmaiaroto/hugo-redlounge">Designed by Red Lounge</a></li>
		
		</ul>
	</div>

	<p>&copy; 2017. All rights reserved.</p>
</div>
        </div>
    </div>
    
</body>
</html>
